package com.lanyun.pojo;

/**
 * @author 李向南
 * 商品实现类
 */
public class Product {

    private Integer product_id;
    private String product_name;
    private String product_address;
    private String product_unit;
    private String product_salesprice;
    private ProductType productType;
    private Integer product_isdel;
    private Integer product_typeid;

    public Integer getProduct_typeid() {
        return product_typeid;
    }

    public void setProduct_typeid(Integer product_typeid) {
        this.product_typeid = product_typeid;
    }

    public Integer getProduct_isdel() {
        return product_isdel;
    }

    public void setProduct_isdel(Integer product_isdel) {
        this.product_isdel = product_isdel;
    }

    public Integer getProduct_id() {
        return product_id;
    }

    public void setProduct_id(Integer product_id) {
        this.product_id = product_id;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public String getProduct_address() {
        return product_address;
    }

    public void setProduct_address(String product_address) {
        this.product_address = product_address;
    }

    public String getProduct_unit() {
        return product_unit;
    }

    public void setProduct_unit(String product_unit) {
        this.product_unit = product_unit;
    }

    public String getProduct_salesprice() {
        return product_salesprice;
    }

    public void setProduct_salesprice(String product_salesprice) {
        this.product_salesprice = product_salesprice;
    }

    public ProductType getProductType() {
        return productType;
    }

    public void setProductType(ProductType productType) {
        this.productType = productType;
    }

    public Product() {
    }

    public Product(Integer product_id, String product_name, String product_address, String product_unit, String product_salesprice, ProductType productType, Integer product_isdel) {
        this.product_id = product_id;
        this.product_name = product_name;
        this.product_address = product_address;
        this.product_unit = product_unit;
        this.product_salesprice = product_salesprice;
        this.productType = productType;
        this.product_isdel = product_isdel;
    }

    @Override
    public String toString() {
        return "Product{" +
                "product_id=" + product_id +
                ", product_name='" + product_name + '\'' +
                ", product_address='" + product_address + '\'' +
                ", product_unit='" + product_unit + '\'' +
                ", product_salesprice='" + product_salesprice + '\'' +
                ", productType=" + productType +
                ", product_isdel=" + product_isdel +
                '}';
    }
}
